<?php
use yii\helpers\Html;
use yii\web\View;
use backend\models\activeRecords\StatisticsDay;
use kartik\widgets\ActiveForm;
use yii\helpers\Url;
use kartik\builder\FormGrid;
use kartik\builder\Form;
use common\libs\Constants;
/* @var $this View */
/* @var $model StatisticsDay */
/* @var $form ActiveForm */
?>
    <?php $form = ActiveForm::begin([
    'id' => 'statistics-day-form',
    'type' => ActiveForm::TYPE_VERTICAL,
    'options' => [
    'enctype' => 'multipart/form-data'
    ],
    'enableAjaxValidation' => true,
    'validationUrl' => Url::toRoute(['validate-form'])
    ]);
echo FormGrid::widget([
    'model'=>$model,
    'form'=>$form,
    'autoGenerateColumns'=>true,
    'rows'=>[
                                [
                    'attributes' => [
                        'reg_num' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'pay_sum' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'pay_num' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'pay_rate' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'arppu' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'next_remains' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'third_remains' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'seven_remains' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'thirty_remains' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'game_name' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'server_name' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'guild_sign' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'spread_key_2' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'record_time' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                                    [
                    'attributes' => [
                        'date' => [
                            'type' => Form::INPUT_TEXT,
                        ],
                    ]
                ],
                            [
            'attributes'=>[
            'actions'=>[    // embed raw HTML content
                'type' => Form::INPUT_RAW,
                'value'=>  '<div style="text-align: center;">' .
                    Html::resetButton(Yii::t('app', 'Reset'), ['class'=>'btn btn-default']) .
                    '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' .
                    Html::submitButton(Yii::t('app', 'Save'), ['class'=>'btn btn-primary']) .
                    '</div>'
                ],
            ]
        ]
    ]
]);
ActiveForm::end();